<?php
 /* narato/vivasky */
 get_header();
?>
<?php do_action('narato_before_primary'); ?>
<?php
$searchquery = wp_specialchars(get_search_query(),1);
if(($searchquery) && ($searchquery!=__('Search',"narato"))):
	if (have_posts()): ?>
		<h1 class="title"><?php printf(__("Search results for %s","narato"),'<span class="altText">'.$searchquery.'</span>');?></h1>
		<?php narato_pagenavi(); ?>

		<?php while (have_posts()): the_post();//narato_post();?>
			<!--Start Post-->
			<div <?php post_class(); ?> style="margin-bottom: 40px;">
							
			<div class="p-head">
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
			<small class="p-time">
			<strong class="day"><?php the_time('j') ?></strong>
			<strong class="month-year"><?php the_time('M') ?> <br /><?php the_time('Y') ?></strong>
			</small></div>

			<div class="p-con">
			<?php the_content('Read the rest of this entry &raquo;'); ?>
			<div class="clear"></div>
			<?php wp_link_pages(); ?>
			<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
			</div>

			<div class="p-det">
			 <ul>
			  <li class="p-det-cat">In: <?php the_category('|') ?></li>
			  <?php if (function_exists('the_tags')) { ?> <?php the_tags('<li class="p-det-tag">Tags: ', ', ', '</li>'); ?> <?php } ?>
			 </ul>
			</div>

			<div class="p-more">
			 <ul>
			  <li class="p-more-read"><a href="<?php the_permalink() ?>" title="Read More <?php the_title(); ?>">Read More </a></li>
			  <li class="p-more-com"><?php comments_popup_link('No Comments', '(1) Comment', '(%) Comments'); ?></li>
			</ul>
			</div>

			</div>
			<!--End Post-->
		<?php endwhile; ?>

		<!-- page navigation -->
		<div class="page-navigation clearfix">
		<?php narato_pagenavi('alignright'); ?>
		</div>
		<!-- /page navigation -->

	<?php else: ?>
		<h1 class="title"><span class="error"><?php _e('Nothing found.','narato'); ?></span> <?php _e('Try a different search?','narato'); ?></h1>
		<?php narato_search_form(); ?>
	<?php endif; ?>
<?php else: ?>
	<h1 class="title"><?php _e('What do you wish to search for?','narato'); ?></h1>
	<?php narato_search_form(); ?>
<?php endif; ?>
<?php do_action('narato_after_primary'); ?>
<?php get_footer(); ?>